<?php


namespace app\middleware;


use app\common\service\Iib;

class CheckSysStatus
{
    /**
     * @param $request
     * @param \Closure $next
     * @return mixed
     * @throws \app\common\lib\exception\ParameterException
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function handle($request, \Closure $next)
    {
        // 调用应用状态检查
        Iib::sysStatus();
        return $next($request);
    }
}